﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Zombicide.Model;

namespace Zombicide.UI.WPF
{
    /// <summary>
    /// Logique d'interaction pour UCSquare.xaml
    /// </summary>
    public partial class UCSquare : UserControl
    {
        private MainWindow RefMainWindow;

        public Square Square { get; set; }

        public UCSquare()
        {
            InitializeComponent();
        }

        public UCSquare(MainWindow refMainWindow, Square square)
        {
            InitializeComponent();
            RefMainWindow = refMainWindow;
            this.Square = square;
        }

        public void Highligth()
        {
            Canvas.Background = Brushes.Green;
        }

        public void DesactivateHighlight()
        {
            Canvas.Background = Brushes.Transparent;
        }

        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            //RefMainWindow.AddHero(Square);
        }
    }
}
